package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 采购入库箱码明细对象 biz_purchase_in_barcode
 * 
 * @author ruoyi
 * @date 2025-11-01
 */
public class BizPurchaseInBarcode extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 入库箱码ID，主键 */
    private Long purchaseInBarcodeId;

    /** 采购入库单ID */
    @Excel(name = "采购入库单ID")
    private Long purchaseInId;

    /** 入库批次ID */
    @Excel(name = "入库批次ID")
    private Long purchaseInBatchId;

    /** 箱码ID */
    @Excel(name = "箱码ID")
    private Long barcodeId;

    /** 箱码 */
    @Excel(name = "箱码")
    private String barcode;

    /** 存货编码 */
    @Excel(name = "存货编码")
    private String inventoryCode;

    /** 批次号 */
    @Excel(name = "批次号")
    private String batchNo;

    /** 装箱数量 */
    @Excel(name = "装箱数量")
    private BigDecimal packQuantity;

    /** 计量单位编码 */
    @Excel(name = "计量单位编码")
    private String unitCode;

    /** 仓库编码 */
    @Excel(name = "仓库编码")
    private String warehouseCode;

    /** 仓库名称 */
    @Excel(name = "仓库名称")
    private String warehouseName;

    /** 库位编码 */
    @Excel(name = "库位编码")
    private String locationCode;

    /** 库位名称 */
    @Excel(name = "库位名称")
    private String locationName;

    /** 箱码状态：PUTAWAY-已入库, ROLLBACK-已回撤 */
    @Excel(name = "箱码状态：PUTAWAY-已入库, ROLLBACK-已回撤")
    private String barcodeStatus;

    /** 入库时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入库时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date putawayTime;

    /** 入库操作人 */
    @Excel(name = "入库操作人")
    private String putawayOperator;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    public void setPurchaseInBarcodeId(Long purchaseInBarcodeId) 
    {
        this.purchaseInBarcodeId = purchaseInBarcodeId;
    }

    public Long getPurchaseInBarcodeId() 
    {
        return purchaseInBarcodeId;
    }
    public void setPurchaseInId(Long purchaseInId) 
    {
        this.purchaseInId = purchaseInId;
    }

    public Long getPurchaseInId() 
    {
        return purchaseInId;
    }
    public void setPurchaseInBatchId(Long purchaseInBatchId) 
    {
        this.purchaseInBatchId = purchaseInBatchId;
    }

    public Long getPurchaseInBatchId() 
    {
        return purchaseInBatchId;
    }
    public void setBarcodeId(Long barcodeId) 
    {
        this.barcodeId = barcodeId;
    }

    public Long getBarcodeId() 
    {
        return barcodeId;
    }
    public void setBarcode(String barcode) 
    {
        this.barcode = barcode;
    }

    public String getBarcode() 
    {
        return barcode;
    }
    public void setInventoryCode(String inventoryCode) 
    {
        this.inventoryCode = inventoryCode;
    }

    public String getInventoryCode() 
    {
        return inventoryCode;
    }
    public void setBatchNo(String batchNo) 
    {
        this.batchNo = batchNo;
    }

    public String getBatchNo() 
    {
        return batchNo;
    }
    public void setPackQuantity(BigDecimal packQuantity) 
    {
        this.packQuantity = packQuantity;
    }

    public BigDecimal getPackQuantity() 
    {
        return packQuantity;
    }
    public void setUnitCode(String unitCode) 
    {
        this.unitCode = unitCode;
    }

    public String getUnitCode() 
    {
        return unitCode;
    }
    public void setWarehouseCode(String warehouseCode) 
    {
        this.warehouseCode = warehouseCode;
    }

    public String getWarehouseCode() 
    {
        return warehouseCode;
    }
    public void setWarehouseName(String warehouseName) 
    {
        this.warehouseName = warehouseName;
    }

    public String getWarehouseName() 
    {
        return warehouseName;
    }
    public void setLocationCode(String locationCode) 
    {
        this.locationCode = locationCode;
    }

    public String getLocationCode() 
    {
        return locationCode;
    }
    public void setLocationName(String locationName) 
    {
        this.locationName = locationName;
    }

    public String getLocationName() 
    {
        return locationName;
    }
    public void setBarcodeStatus(String barcodeStatus) 
    {
        this.barcodeStatus = barcodeStatus;
    }

    public String getBarcodeStatus() 
    {
        return barcodeStatus;
    }
    public void setPutawayTime(Date putawayTime) 
    {
        this.putawayTime = putawayTime;
    }

    public Date getPutawayTime() 
    {
        return putawayTime;
    }
    public void setPutawayOperator(String putawayOperator) 
    {
        this.putawayOperator = putawayOperator;
    }

    public String getPutawayOperator() 
    {
        return putawayOperator;
    }
    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }
    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("purchaseInBarcodeId", getPurchaseInBarcodeId())
            .append("purchaseInId", getPurchaseInId())
            .append("purchaseInBatchId", getPurchaseInBatchId())
            .append("barcodeId", getBarcodeId())
            .append("barcode", getBarcode())
            .append("inventoryCode", getInventoryCode())
            .append("batchNo", getBatchNo())
            .append("packQuantity", getPackQuantity())
            .append("unitCode", getUnitCode())
            .append("warehouseCode", getWarehouseCode())
            .append("warehouseName", getWarehouseName())
            .append("locationCode", getLocationCode())
            .append("locationName", getLocationName())
            .append("barcodeStatus", getBarcodeStatus())
            .append("putawayTime", getPutawayTime())
            .append("putawayOperator", getPutawayOperator())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .toString();
    }
}
